//点击进入详情页面
function gotoDetail() {
    window.location="../uploadChapter.html?bid="+request("bid")+"&name="+request("name");
}
//点击进入单词页面
function gotoWord() {
    window.location="../word.html?book="+request("bid");
}
document.getElementById("name").innerText=request("name");
document.getElementById("brief").innerText=request("brief");
document.getElementById("cover").src="cover/"+request("cover");
var chaper = new Vue({
    el:"#chaper",
    data:{
        chapterList:[]
    }
});
axios.get("/getChapterNameList?bid="+request("bid"))
    .then(function (response) {
        chaper.chapterList =response.data.chapterList;
    });

function gotoContent(e) {
    that = e.target;
    window.location="content.html?cid="+that.getAttribute("cid")+"&bid="+request("bid")+"&name="+request("name")
        +"&brief="+request("brief")+"&cover="+request("cover");
}
